package com.itheima.tlias.service;

import com.itheima.tlias.dto.AddDeptDto;
import com.itheima.tlias.dto.UpdateDto;
import com.itheima.tlias.entity.Dept;
import com.itheima.tlias.vo.DeptVo;


import java.util.List;
public interface DeptService {
     List<DeptVo> depts() throws Exception;

    void deleteDept(Integer id) throws Exception;

    void addDept(AddDeptDto dto);

    DeptVo getById(Integer id);

    void updateDept(UpdateDto dto);
}

